<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | 王勇程 <laughskydragon@qq.com>                         |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

use think\facade\Route;

// 设置变量规则
Route::pattern([
    'name' => '\w+',
    'id'   => '\d+'
]);

// 路由分组
Route::group('hello', function () {
    Route::get(':id', 'index/hello');
    Route::post(':name', 'index/hello');
});
